package com.ruidan.service.impl;

import com.ruidan.form.LoginForm;
import com.ruidan.service.LoginService;
import com.ruidan.service.vo.MessageVo;

public class loginServiceImpl implements LoginService {

	@Override
	public MessageVo  isUser(LoginForm loginForm) {
		MessageVo messageVo = new MessageVo();
		if("ylz".equals(loginForm.getUsername())&&"1234".equalsIgnoreCase(loginForm.getPassword())){
			messageVo.setFlag(true);
			messageVo.setMessage("客户："+loginForm.getUsername()+" 欢迎您的登录!!!");
		}else{
			messageVo.setFlag(false);
			messageVo.setMessage("账号或密码输入错误！！！");
		}
		return messageVo;
	}

}
